package com.reder.practice.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 用户表实体类
 *
 * @author Fish
 * <p>Email: fishinlove@163.com</p>
 * <p>created by 2019/09/20 16:05:06</p>
 */
@ApiModel("用户表实体类")
public class User {
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键，后台自动填充", example = "0")
    private Long id;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    /**
     * 用户密码
     */
    @ApiModelProperty("用户密码")
    private String password;

    /**
     * 关注数量
     */
    @ApiModelProperty(value = "关注数量，后台自动填充", example = "0")
    private Long followAmount;

    /**
     * 粉丝数量
     */
    @ApiModelProperty(value = "粉丝数量，后台自动填充", example = "0")
    private Long followerAmount;

    /**
     * 用户头像
     */
    @ApiModelProperty("用户头像，后台自动填充")
    private String headImage;

    /**
     * 用户性别，F 女性，M 男性
     */
    @ApiModelProperty("用户性别，F 女性，M 男性")
    private String sex;

    /**
     * 用户注册时间
     */
    @ApiModelProperty("用户注册时间，后台自动填充")
    private Date createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Long getFollowAmount() {
        return followAmount;
    }

    public void setFollowAmount(Long followAmount) {
        this.followAmount = followAmount;
    }

    public Long getFollowerAmount() {
        return followerAmount;
    }

    public void setFollowerAmount(Long followerAmount) {
        this.followerAmount = followerAmount;
    }

    public String getHeadImage() {
        return headImage;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", nickName=").append(nickName);
        sb.append(", password=").append(password);
        sb.append(", followAmount=").append(followAmount);
        sb.append(", followerAmount=").append(followerAmount);
        sb.append(", headImage=").append(headImage);
        sb.append(", sex=").append(sex);
        sb.append(", createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }
}